package rentadomus

class Office{

    Place idPlace
    int officeNumber
    int baths
    int parkingSlots
    boolean kitchenette
    
    static constraints = {
        officeNumber blank:false
    }
    
    static mapping ={
        version false
        idPlace column: 'id_place'
        officeNumber column:'office_number'
        parkingSlots column:'parking_slots'
    }
    
    public String toString(){
        "${idPlace.toString()}"
    }
}
